package br.edu.unibratec.Projeto.view;

import br.edu.unibratec.Projeto.R;
import br.edu.unibratec.Projeto.R.layout;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class PincipalActivity extends Activity {
	
	private Button btnEvento;
	private Button btnPonto;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        btnEvento = (Button)findViewById(R.id.button1);
        btnPonto = (Button)findViewById(R.id.button2);
    }
    
    public void clickBotoes(View v) {
		Intent intent = null;
		switch (v.getId()) {
		case R.id.button1:
		     intent = new Intent(this, ListaEventosActivity.class);
		     startActivity(intent);
		     break;
		case R.id.button2:
			intent = new Intent(this, ListaPontosActivity.class);
			startActivity(intent);
			break;
		}
	}
}